import request from '@/utils/request'

// 查询用户课程退款列表
export function listGoodsOrderRefunds(query) {
  return request({
    url: '/course/goodsOrderRefunds/list',
    method: 'get',
    params: query
  })
}

// 查询用户课程退款详细
export function getGoodsOrderRefunds(id) {
  return request({
    url: '/course/goodsOrderRefunds/' + id,
    method: 'get'
  })
}

// 新增用户课程退款
export function addGoodsOrderRefunds(data) {
  return request({
    url: '/course/goodsOrderRefunds',
    method: 'post',
    data: data
  })
}

// 修改用户课程退款
export function updateGoodsOrderRefunds(data) {
  return request({
    url: '/course/goodsOrderRefunds',
    method: 'put',
    data: data
  })
}

// 删除用户课程退款
export function delGoodsOrderRefunds(id) {
  return request({
    url: '/course/goodsOrderRefunds/' + id,
    method: 'delete'
  })
}
